package hmap

type Object interface{}

type HashMap struct {
	element map[Object]Object
}

func New() HashMap {
	var hmap HashMap = HashMap{make(map[Object]Object)}
	return hmap
}
func (mp *HashMap) Set(key Object, value Object) {
	mp.element[key] = value
}
func (mp *HashMap) Get(key Object) Object {
	return mp.element[key]
}
func (mp *HashMap) Remove(key Object) {
	delete(mp.element, key)
}
